import request from '@/utils/request'


export function ct_List(params) {
  return request({
    url: '/tixing/category/list',
    method: 'get',
    params: params
  })
}

export function ct_Plist(params) {
  return request({
    url: '/tixing/category/pList',
    method: 'get',
    params: params
  })
}

export function ct_Clist(params) {
  return request({
    url: '/tixing/category/cList',
    method: 'get',
    params: params
  })
}

//xiangqing
export function ct_Info(params) {
  return request({
    url: '/tixing/category/info',
    method: 'get',
    params: params
  })
}

export function ct_Save(data) {
  return request({
    url: `/tixing/category/save`,
    method: 'post',
    data
  })
}

export function ct_Status(data) {
  return request({
    url: '/tixing/category/status',
    method: 'put',
    data
  })
}


export function ct_Del(query) {
  return request({
    url: '/tixing/category/del',
    method: 'delete',
    params: query
  })
}

export function Create(data) {
  return request({
    url: '/tixing/add',
    method: 'post',
    data
  })
}

export function List(params) {
  return request({
    url: '/tixing/list',
    method: 'get',
    params: params
  })
}

export function Info(params) {
  return request({
    url: '/tixing/info',
    method: 'get',
    params: params
  })
}

export function Edit(data) {
  return request({
    url: `/tixing/update`,
    method: 'post',
    data
  })
}

export function Status(data) {
  return request({
    url: '/tixing/statusChange',
    method: 'put',
    data
  })
}


export function Del(query) {
  return request({
    url: '/tixing/del',
    method: 'delete',
    params: query
  })
}


export function recomStatus(data) {
  return request({
    url: '/tixing/recomChange',
    method: 'put',
    data
  })
}
